package com.hjy.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjy.common.utils.PageUtils;
import com.hjy.product.entity.CategoryEntity;
import com.hjy.product.vo.categoryVo.category2Level;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author ä½éªæ¬
 * @email 2402668109@qq.com
 * @date 2022-07-16 01:39:19
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> getCategoryListTree();

    void removeIdsByLogic(List<Long> asList);

    void updateCascade(CategoryEntity category);

    public List<CategoryEntity> getChildren(List<CategoryEntity> list, CategoryEntity root);

    List<CategoryEntity> getCategoryLevel1();

    Map<String, List<category2Level>> getCategoryList();
}

